"""
@作者 = "陈诗"
@email = 3168157154@qq.com
@creative_time = 2025/11/5 18:55
"""
import time


# 计时器
def timer(func):
    def record():
        print("计时开始")
        start = time.time()
        func()  # 即continue_()
        gap = (time.time() - start)  # 至今经过的总时间 - 初始经过的总时间
        print(f"运行占用的时间:{gap}")
    return record


@timer
def continue_():
    print("正在运行中...")


continue_()
